<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../js/jquery-1.11.0.js"></script>
<script type="text/javascript">
	function init(){
		/* 给点击按钮添加一个事件 */
		document.getElementById("actionButton").onclick=function(){
			var content=document.getElementById("content").value;
			alert(content);
		}
	}
</script>
</head>
<body onload="init()">
<input type="text" id="content"/>&nbsp;&nbsp;<input type="button" id="actionButton" value="获取内容"/>
</body>
</html>